package com.lwj.mapper.configuration;

import com.lwj.dto.configuration.RoleListDto;
import com.lwj.model.configuration.DepartmentRole;
import com.lwj.vo.configuration.PermissionCheckVo;
import com.lwj.vo.configuration.RoleVo;
import com.lwj.vo.system.MenuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRoleMapper {
    int deleteByPrimaryKey(String departmentRoleId);

    int insert(DepartmentRole record);

    int insertSelective(DepartmentRole record);

    DepartmentRole selectByPrimaryKey(String departmentRoleId);

    int updateByPrimaryKeySelective(DepartmentRole record);

    int updateByPrimaryKey(DepartmentRole record);

    List<RoleVo> roleList(RoleListDto dto);

    PermissionCheckVo selectPermission(@Param("permissionCode") String permissionCode,@Param("departmentRoleId")  String departmentRoleId, @Param("empId") String empId);

    List<String> selectAdminIds(@Param("excludeDisabled")Boolean excludeDisabled);
}
